/*
 * $Id: CommonCodeConstants.java,v 1.7 2009/08/14 05:52:09 afaichun Exp $
 * 
 * Copyright (C) 2008 General Electric Company. All Rights Reserved.
 * 
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 * 
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */
package com.ge.healthcare.autosc.common.util;

import com.ge.healthcare.autosc.common.ASCUtil;

/**
 * 
 * @author 212042946
 *
 */
public class CommonCodeConstants {

	/* New request code */
	public static final String REQ_S_NEW_000 = "REQ_S_NEW_000";
	public static final String REQUEST_INPROCESS = "REQ_P_PROCESSING_001";
	public static final String REQUEST_SUCCESS = "REQ_S_SUCCESS_001";
	public static final String REQUEST_FAILED = "REQ_F_FAILED_001";
	public static final String REQUEST_SUCCESS_PARTIAL = "REQ_S_SUCCESS_002";
	public static final String TASK_SAVED_ONWATCH_QUEUE = "DSP_P_PASS_003";
	
	public static boolean isRequestInProcess(String status) {
		if( ASCUtil.isNullOrEmpty(status)){
			return false;
		} else if( REQUEST_INPROCESS.equals(status)){
			return true;
		}
		return false;
	}

	public static boolean requestIsFailed(String status) {
		if( ASCUtil.isNullOrEmpty(status)){
			return false;
		} else if( REQUEST_FAILED.equals(status)){
			return true;
		}
		return false;
	}
}
